package a.h;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

class p
  extends d
{
  private JCheckBox n = new JCheckBox();
  private boolean o;
  
  public p(ec paramec)
  {
    super(paramec);
    this.n.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramAnonymousActionEvent)
      {
        p.this.d(false);
        if (ec.t == 0) {}
        p.this.a(nb.a(!p.this.n.isSelected()), nb.a(p.this.n.isSelected()));
      }
    });
    this.o = false;
    d(paramec.m());
    c(paramec.f());
    if ((ec.t != 0) || (!p())) {
      this.n.setSelected(nb.a(paramec.o()).booleanValue());
    }
  }
  
  public Object n()
  {
    return nb.a(this.n.isSelected());
  }
  
  public void a(Object paramObject)
  {
    boolean bool1 = this.n.isSelected();
    boolean bool2 = nb.a(paramObject).booleanValue();
    if (ec.t == 0)
    {
      if (bool1 != bool2) {
        this.n.setSelected(bool2);
      }
    }
    else {
      a(nb.a(bool1), nb.a(bool2));
    }
  }
  
  public boolean o()
  {
    return this.n.isEnabled();
  }
  
  public void c(boolean paramBoolean)
  {
    boolean bool = o();
    if (ec.t == 0)
    {
      if (bool != paramBoolean) {
        this.n.setEnabled(paramBoolean);
      }
    }
    else {
      a(bool, paramBoolean);
    }
  }
  
  public boolean p()
  {
    return this.o;
  }
  
  public void d(boolean paramBoolean)
  {
    if ((ec.t != 0) || (this.o != paramBoolean))
    {
      boolean bool = this.o;
      this.o = paramBoolean;
      this.n.setBackground(paramBoolean ? ad.d() : ad.a("CheckBox.background"));
      b(bool, paramBoolean);
    }
  }
  
  public JComponent f()
  {
    return this.n;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.p

 * JD-Core Version:    0.7.0.1

 */